<script setup lang="ts">
import { onMounted } from 'vue'
import * as echarts from 'echarts';
import { lineDiagram } from '@/router/Trend'


function line(){
  const myChart = echarts.init(document.getElementById('main'));
  // 舆情线型图
  myChart.setOption(lineDiagram());
}
onMounted(()=>{
  line()
})
</script>

<template>
<div Trend>
    <div id="main">

    </div>
</div>
</template>

<style scoped>
[Trend]{
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;

}
#main{
  width: 100%;
  height: 100%;
}
</style>
